document.write('<div id="bdshare" style="right: 0px; top: 300px; position: fixed; height: 330px; overflow: hidden; width: 60px;">');
document.write('    <div class="slide-img1">');
document.write('    <img src="img/icon_mob.png">');
document.write('    <div class="slide-word1">');
document.write('    <p>售前电话</p>');
document.write('    </div>');
document.write('    <div>');
document.write('    <p class="phone">15201626799</p>');
document.write('    </div>');
document.write('    </div>');
document.write('    <div class="slide-img1">');
document.write('    <img src="img/icon_service.png"></a>');
document.write('    <div class="slide-word1">');
document.write('    <a href="http://p.qiao.baidu.com/cps/chat?siteId=11006907&userId=24282692" target="_blank"><p>售前咨询</p></a>');
document.write('</div>');
document.write('</div>');
document.write('<div class="slide-img1"><a href="#"><img src="img/icon_wechat.png"></a><div class="slide-word1"><p>关注微信</p></div><div><p class="weixin"><img src="img/pic_wechat.png"/></p></div></div>')
document.write('<div class="slide-img1 slide-top">');
document.write('    <a href="javascript:scroll(0,0)"><img src="img/icon_top.png"></a>');
document.write('    <div class="slide-word1" onclick="window.scrollTo(0,0)">');
document.write('    <p>返回顶部</p>');
document.write('    </div>');
document.write('    </div>');
document.write('    </div>');
$(function() {
    $(".slide-word1").hide();
    $(".phone").hide();
	$(".weixin").hide();
    $(".slide-img1").mouseover(function () {
        $(".slide-word1").eq($(this).index()).show();
        if ($(this).index() == 0) {
            $(".phone").show(400);
        }else if($(this).index()==2){
        	 $(".weixin").show();
        }

    });
    $(".slide-img1").mouseout(function () {
        $(".slide-word1").eq($(this).index()).hide();
        $(".phone").hide();
        $(".weixin").hide();
    });
    
    $("#bdshare .slide-top").hide()//隐藏go to top按钮
    $(window).scroll(function(){
        if($(this).scrollTop()>1){//当window的scrolltop距离大于1时，go to top按钮淡出，反之淡入
            $("#bdshare .slide-top").fadeIn();
        } else {
            $("#bdshare .slide-top").fadeOut();
        }
    });
});